package chapter01.memory;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Phone
 * Package: chapter01.memory
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-09-17
 * Time: 22:32
 */

//内存解析

public class Person {

    String name;
    int age;
    char gender; //性别

    public void eat() {
        System.out.println("人吃饭");
    }

    public void sleep(int hour) {
        System.out.println("人至少保证每天" + hour + "小时的睡眠");
    }

    public void interests(String hobby){
        System.out.println("我的爱好是: " + hobby);
    }


}
